package com.meilai.project.controller.mini.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.HashMap;
import java.util.List;

/**
 * @author 张驰
 * @description 小程序-提交客户需求
 * @date 2022-08-31 09:16
 */
@Data
public class MiniSubmitNeedParams {
    @NotNull(message = "开始日期不能为空")
    @ApiModelProperty("开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginDate;

    @NotNull(message = "结束日期不能为空")
    @ApiModelProperty("结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @NotNull(message = "是否新客户不能为空")
    @ApiModelProperty("是否新客户")
    private Boolean isNew;

    @ApiModelProperty("非新客户时，客户id")
    private Long customerId;

    @ApiModelProperty("新客户时，客户名称")
    private String newCustomerName;

    @ApiModelProperty("楼盘ids")
    private List<Long> buildingIds;

    @ApiModelProperty("各类型点位需求数量")
    private HashMap<Long, Integer> mtCount;

    @ApiModelProperty("备注")
    private String memo;

}
